#ifndef SERVICE_H
#define SERVICE_H
#include <string.h>
#include <stdlib.h>
#include <set>
#include <vector>
#include <iostream>
class ServiceItem{
public:
    ServiceItem(std::string ip, int port, std::string name):ip(ip), port(port), name(name){};
    ~ServiceItem() = default;
    std::string getIp() const;
    int getPort() const;
    std::string getName() const;

private:
    std::string ip;
    int port;
    std::string name;
};

class Service{
public:
    Service() = default;
    ~Service() = default;
    void addService(ServiceItem service);
    void removeService(ServiceItem service);
    std::vector<ServiceItem> getServiceList();
private:
    std::string service_name;
    std::vector<ServiceItem> service_list;
};
#endif